package link.gpt.dao;

import java.util.List;
import link.gpt.pojo.WorkOrder;
import link.gpt.pojo.WorkOrderExample;
import org.apache.ibatis.annotations.Param;

public interface WorkOrderDao {
    long countByExample(WorkOrderExample example);

    int deleteByExample(WorkOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WorkOrder record);

    int insertSelective(WorkOrder record);

    List<WorkOrder> selectByExample(WorkOrderExample example);

    WorkOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WorkOrder record, @Param("example") WorkOrderExample example);

    int updateByExample(@Param("record") WorkOrder record, @Param("example") WorkOrderExample example);

    int updateByPrimaryKeySelective(WorkOrder record);

    int updateByPrimaryKey(WorkOrder record);

    /**
     * 查询所有或根据项目编号查询,分页
     * @param projectId
     * @return
     */
    List<WorkOrder> selectAllByProjectIdAndPage(Integer projectId);
}